package com.fay.designPattern.principles.solid;

import java.util.ArrayList;
import java.util.List;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/3/2 16:41
 * @Version 1.0
 */
public class JunitApplication {
    private static final List<TestCase> testCases = new ArrayList<>();

    public static void register(TestCase testCase) {
        testCases.add(testCase);
    }

    public static void main(String[] args) {
        JunitApplication.register(new UserServiceTest());
        for (TestCase testCase : testCases) {
            testCase.run();
        }
    }
}
